package com.lixueju.security.box.core.properties;

import lombok.Data;

/**
 * @author lixueju
 * @since 2019/11/13 15:07
 **/
@Data
public class OAuth2ClientProperties {
    /**
     * 第三方应用appId
     */
    private String clientId = SecurityBoxConstants.DEFAULT_CLIENT_ID;
    /**
     * 第三方应用appSecret
     */
    private String clientSecret = SecurityBoxConstants.DEFAULT_CLIENT_SECRET;
    /**
     * 访问范围
     */
    private String scopes = SecurityBoxConstants.DEFAULT_CLIENT_SCOPES;

    /**
     * 针对此应用发出的token的有效时间
     */
    private int tokenValiditySeconds = SecurityBoxConstants.DEFAULT_CLIENT_ACCESS_TOKEN_VALIDITY_SECONDS;

    /**
     * 针对此应用发出的刷新token的有效时间
     */
    private int refreshTokenValiditySeconds = SecurityBoxConstants.DEFAULT_CLIENT_REFRESH_TOKEN_VALIDITY_SECONDS;

    /**
     * 针对此应用发出的token再redis储存的前缀
     */
    private String tokenPrefix = "user_token:";
}
